package com.swt.draw.example;

import java.util.ArrayList;
import java.util.List;

public class DepartmentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DepartmentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDepartmentParentNoIsNull() {
            addCriterion("department_parent_no is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentParentNoIsNotNull() {
            addCriterion("department_parent_no is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentParentNoEqualTo(String value) {
            addCriterion("department_parent_no =", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentParentNoNotEqualTo(String value) {
            addCriterion("department_parent_no <>", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentParentNoGreaterThan(String value) {
            addCriterion("department_parent_no >", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentParentNoGreaterThanOrEqualTo(String value) {
            addCriterion("department_parent_no >=", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentParentNoLessThan(String value) {
            addCriterion("department_parent_no <", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentParentNoLessThanOrEqualTo(String value) {
            addCriterion("department_parent_no <=", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentParentNoLike(String value) {
            addCriterion("department_parent_no like", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentParentNoNotLike(String value) {
            addCriterion("department_parent_no not like", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentParentNoIn(List<String> values) {
            addCriterion("department_parent_no in", values, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentParentNoNotIn(List<String> values) {
            addCriterion("department_parent_no not in", values, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentParentNoBetween(String value1, String value2) {
            addCriterion("department_parent_no between", value1, value2, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentParentNoNotBetween(String value1, String value2) {
            addCriterion("department_parent_no not between", value1, value2, "departmentNo");
            return (Criteria) this;
        }
        /**/
        public Criteria andDepartmentNoIsNull() {
            addCriterion("department_no is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentNoIsNotNull() {
            addCriterion("department_no is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentNoEqualTo(String value) {
            addCriterion("department_no =", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentNoNotEqualTo(String value) {
            addCriterion("department_no <>", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentNoGreaterThan(String value) {
            addCriterion("department_no >", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentNoGreaterThanOrEqualTo(String value) {
            addCriterion("department_no >=", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentNoLessThan(String value) {
            addCriterion("department_no <", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentNoLessThanOrEqualTo(String value) {
            addCriterion("department_no <=", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentNoLike(String value) {
            addCriterion("department_no like", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentNoNotLike(String value) {
            addCriterion("department_no not like", value, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentNoIn(List<String> values) {
            addCriterion("department_no in", values, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentNoNotIn(List<String> values) {
            addCriterion("department_no not in", values, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentNoBetween(String value1, String value2) {
            addCriterion("department_no between", value1, value2, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentNoNotBetween(String value1, String value2) {
            addCriterion("department_no not between", value1, value2, "departmentNo");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameIsNull() {
            addCriterion("department_name is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameIsNotNull() {
            addCriterion("department_name is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameEqualTo(String value) {
            addCriterion("department_name =", value, "departmentName");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameNotEqualTo(String value) {
            addCriterion("department_name <>", value, "departmentName");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameGreaterThan(String value) {
            addCriterion("department_name >", value, "departmentName");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameGreaterThanOrEqualTo(String value) {
            addCriterion("department_name >=", value, "departmentName");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameLessThan(String value) {
            addCriterion("department_name <", value, "departmentName");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameLessThanOrEqualTo(String value) {
            addCriterion("department_name <=", value, "departmentName");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameLike(String value) {
            addCriterion("department_name like", value, "departmentName");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameNotLike(String value) {
            addCriterion("department_name not like", value, "departmentName");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameIn(List<String> values) {
            addCriterion("department_name in", values, "departmentName");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameNotIn(List<String> values) {
            addCriterion("department_name not in", values, "departmentName");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameBetween(String value1, String value2) {
            addCriterion("department_name between", value1, value2, "departmentName");
            return (Criteria) this;
        }

        public Criteria andDepartmentNameNotBetween(String value1, String value2) {
            addCriterion("department_name not between", value1, value2, "departmentName");
            return (Criteria) this;
        }

        public Criteria andDepartmentStatusIsNull() {
            addCriterion("department_status is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentStatusIsNotNull() {
            addCriterion("department_status is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentStatusEqualTo(Short value) {
            addCriterion("department_status =", value, "departmentStatus");
            return (Criteria) this;
        }

        public Criteria andDepartmentStatusNotEqualTo(Short value) {
            addCriterion("department_status <>", value, "departmentStatus");
            return (Criteria) this;
        }

        public Criteria andDepartmentStatusGreaterThan(Short value) {
            addCriterion("department_status >", value, "departmentStatus");
            return (Criteria) this;
        }

        public Criteria andDepartmentStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("department_status >=", value, "departmentStatus");
            return (Criteria) this;
        }

        public Criteria andDepartmentStatusLessThan(Short value) {
            addCriterion("department_status <", value, "departmentStatus");
            return (Criteria) this;
        }

        public Criteria andDepartmentStatusLessThanOrEqualTo(Short value) {
            addCriterion("department_status <=", value, "departmentStatus");
            return (Criteria) this;
        }

        public Criteria andDepartmentStatusIn(List<Short> values) {
            addCriterion("department_status in", values, "departmentStatus");
            return (Criteria) this;
        }

        public Criteria andDepartmentStatusNotIn(List<Short> values) {
            addCriterion("department_status not in", values, "departmentStatus");
            return (Criteria) this;
        }

        public Criteria andDepartmentStatusBetween(Short value1, Short value2) {
            addCriterion("department_status between", value1, value2, "departmentStatus");
            return (Criteria) this;
        }

        public Criteria andDepartmentStatusNotBetween(Short value1, Short value2) {
            addCriterion("department_status not between", value1, value2, "departmentStatus");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeIsNull() {
            addCriterion("department_create_time is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeIsNotNull() {
            addCriterion("department_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeEqualTo(String value) {
            addCriterion("department_create_time =", value, "departmentCreateTime");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeNotEqualTo(String value) {
            addCriterion("department_create_time <>", value, "departmentCreateTime");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeGreaterThan(String value) {
            addCriterion("department_create_time >", value, "departmentCreateTime");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeGreaterThanOrEqualTo(String value) {
            addCriterion("department_create_time >=", value, "departmentCreateTime");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeLessThan(String value) {
            addCriterion("department_create_time <", value, "departmentCreateTime");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeLessThanOrEqualTo(String value) {
            addCriterion("department_create_time <=", value, "departmentCreateTime");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeLike(String value) {
            addCriterion("department_create_time like", value, "departmentCreateTime");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeNotLike(String value) {
            addCriterion("department_create_time not like", value, "departmentCreateTime");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeIn(List<String> values) {
            addCriterion("department_create_time in", values, "departmentCreateTime");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeNotIn(List<String> values) {
            addCriterion("department_create_time not in", values, "departmentCreateTime");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeBetween(String value1, String value2) {
            addCriterion("department_create_time between", value1, value2, "departmentCreateTime");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateTimeNotBetween(String value1, String value2) {
            addCriterion("department_create_time not between", value1, value2, "departmentCreateTime");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByIsNull() {
            addCriterion("department_create_by is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByIsNotNull() {
            addCriterion("department_create_by is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByEqualTo(String value) {
            addCriterion("department_create_by =", value, "departmentCreateBy");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByNotEqualTo(String value) {
            addCriterion("department_create_by <>", value, "departmentCreateBy");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByGreaterThan(String value) {
            addCriterion("department_create_by >", value, "departmentCreateBy");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByGreaterThanOrEqualTo(String value) {
            addCriterion("department_create_by >=", value, "departmentCreateBy");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByLessThan(String value) {
            addCriterion("department_create_by <", value, "departmentCreateBy");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByLessThanOrEqualTo(String value) {
            addCriterion("department_create_by <=", value, "departmentCreateBy");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByLike(String value) {
            addCriterion("department_create_by like", value, "departmentCreateBy");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByNotLike(String value) {
            addCriterion("department_create_by not like", value, "departmentCreateBy");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByIn(List<String> values) {
            addCriterion("department_create_by in", values, "departmentCreateBy");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByNotIn(List<String> values) {
            addCriterion("department_create_by not in", values, "departmentCreateBy");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByBetween(String value1, String value2) {
            addCriterion("department_create_by between", value1, value2, "departmentCreateBy");
            return (Criteria) this;
        }

        public Criteria andDepartmentCreateByNotBetween(String value1, String value2) {
            addCriterion("department_create_by not between", value1, value2, "departmentCreateBy");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1IsNull() {
            addCriterion("department_extend1 is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1IsNotNull() {
            addCriterion("department_extend1 is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1EqualTo(String value) {
            addCriterion("department_extend1 =", value, "departmentExtend1");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1NotEqualTo(String value) {
            addCriterion("department_extend1 <>", value, "departmentExtend1");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1GreaterThan(String value) {
            addCriterion("department_extend1 >", value, "departmentExtend1");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1GreaterThanOrEqualTo(String value) {
            addCriterion("department_extend1 >=", value, "departmentExtend1");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1LessThan(String value) {
            addCriterion("department_extend1 <", value, "departmentExtend1");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1LessThanOrEqualTo(String value) {
            addCriterion("department_extend1 <=", value, "departmentExtend1");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1Like(String value) {
            addCriterion("department_extend1 like", value, "departmentExtend1");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1NotLike(String value) {
            addCriterion("department_extend1 not like", value, "departmentExtend1");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1In(List<String> values) {
            addCriterion("department_extend1 in", values, "departmentExtend1");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1NotIn(List<String> values) {
            addCriterion("department_extend1 not in", values, "departmentExtend1");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1Between(String value1, String value2) {
            addCriterion("department_extend1 between", value1, value2, "departmentExtend1");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend1NotBetween(String value1, String value2) {
            addCriterion("department_extend1 not between", value1, value2, "departmentExtend1");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2IsNull() {
            addCriterion("department_extend2 is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2IsNotNull() {
            addCriterion("department_extend2 is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2EqualTo(String value) {
            addCriterion("department_extend2 =", value, "departmentExtend2");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2NotEqualTo(String value) {
            addCriterion("department_extend2 <>", value, "departmentExtend2");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2GreaterThan(String value) {
            addCriterion("department_extend2 >", value, "departmentExtend2");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2GreaterThanOrEqualTo(String value) {
            addCriterion("department_extend2 >=", value, "departmentExtend2");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2LessThan(String value) {
            addCriterion("department_extend2 <", value, "departmentExtend2");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2LessThanOrEqualTo(String value) {
            addCriterion("department_extend2 <=", value, "departmentExtend2");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2Like(String value) {
            addCriterion("department_extend2 like", value, "departmentExtend2");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2NotLike(String value) {
            addCriterion("department_extend2 not like", value, "departmentExtend2");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2In(List<String> values) {
            addCriterion("department_extend2 in", values, "departmentExtend2");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2NotIn(List<String> values) {
            addCriterion("department_extend2 not in", values, "departmentExtend2");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2Between(String value1, String value2) {
            addCriterion("department_extend2 between", value1, value2, "departmentExtend2");
            return (Criteria) this;
        }

        public Criteria andDepartmentExtend2NotBetween(String value1, String value2) {
            addCriterion("department_extend2 not between", value1, value2, "departmentExtend2");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkIsNull() {
            addCriterion("department_remark is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkIsNotNull() {
            addCriterion("department_remark is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkEqualTo(String value) {
            addCriterion("department_remark =", value, "departmentRemark");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkNotEqualTo(String value) {
            addCriterion("department_remark <>", value, "departmentRemark");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkGreaterThan(String value) {
            addCriterion("department_remark >", value, "departmentRemark");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("department_remark >=", value, "departmentRemark");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkLessThan(String value) {
            addCriterion("department_remark <", value, "departmentRemark");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkLessThanOrEqualTo(String value) {
            addCriterion("department_remark <=", value, "departmentRemark");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkLike(String value) {
            addCriterion("department_remark like", value, "departmentRemark");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkNotLike(String value) {
            addCriterion("department_remark not like", value, "departmentRemark");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkIn(List<String> values) {
            addCriterion("department_remark in", values, "departmentRemark");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkNotIn(List<String> values) {
            addCriterion("department_remark not in", values, "departmentRemark");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkBetween(String value1, String value2) {
            addCriterion("department_remark between", value1, value2, "departmentRemark");
            return (Criteria) this;
        }

        public Criteria andDepartmentRemarkNotBetween(String value1, String value2) {
            addCriterion("department_remark not between", value1, value2, "departmentRemark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
